package org.senzacontrollo.designPatterns.composite;

public abstract class Component {
	
	protected String name;
	
	public Component(String name) {
		super();
		this.name = name;
	}
	
	public void add(Component comp) throws SinglePartException{
		throw new SinglePartException();
	}
	
	public void remove(Component comp) throws SinglePartException{
		throw new SinglePartException();
	}
	
	public Component getChild(int n) throws SinglePartException{
		throw new SinglePartException();
	}
	
	public abstract void describe();

}
